home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Utilities / BPOP / How to add a finder balloon < prev   
Text File  |  1996-02-04  |  1KB  |  30 lines

  1. Here is a short and simple way to put a finder balloon in an application.
  2.  
  3. Find an application with a hfdr resource. 
  4.  
  5. Open it with ResEdit. It should have resource ID -5696 and nine groups of four
  6. digits. If not, try another application.
  7.  
  8. The first seven groups should be
  9. 0002 0000 0000 0000
  10. 0000 0001 0006
  11.  
  12. If the eighth group is 0002, you put your message in a PICT resource (very
  13. neat!) If it is 0003 it is in a STR#, 0006 for a TEXT, and 0007 for STR .
  14.  
  15. (If the number is 0001, the balloon is in the resource itself. Find another application with a finder balloon and start over.)
  16.  
  17. The last set of four digits is the id, in hexadecimal, of the resource
  18. that contains the message. If you have a PICT with ID of 128, the last
  19. eight digits in your hfdr will be 0002 0080
  20. (8*16 + 0*1)=128
  21. Obviously if you have your message in a TEXT resource of 130, your last
  22. eight digits will be 0006 0082
  23.  
  24. My advice is to use a STR  resource for your message.
  25.  
  26. When you have a good hfdr resource, copy it from the application you found it in to your application. 
  27.  
  28. Put a value in those last two fields of 0007 0080, create a STR  resource with an ID of 128 and in it include the message you want in your finder balloon. It is that simple.
  29.  
  30. R Schenk